SMAHB04500_[자동판정]의사별 판정 배정기준관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 :
  4. * 설 명 :
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 :
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  13. <xhtml:head>
  14. <xhtml:title>[자동판정]의사별 판정 배정기준 관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <condition>
  20. <instcd/>
  21. <wkdate/>
  22. <adptstrtdt/>
  23. </condition>
  24. <list>
  25. <grdlist/>
  26. </list>
  27. </main>
  28. <disply>
  29. </disply>
  30. <send>
  31. <grdlist/>
  32. </send>
  33. <hidden/>
  34. <temp/>
  35. <init>
  36. <sumamt/>
  37. <baseinfo>
  38. <healexamplacecd/>
  39. <healexamplacelst/>
  40. </baseinfo>
  41. </init>
  42. </root>
  43. </instance>
  44. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  47. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  48. <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
  49. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  50. <script type="javascript" src="../js/AJDG001.js"/>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. fInit();
  54. // fAuthCheck(btn_save);
  55. // fDefaultSubmit();
  56. // fPopupSet();
  57. // model.refresh();
  58. ]]>
  59. </script>
  60. <submission id="TRAHB04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/main/list/grdlist"/>
  61. <submission id="TXAHB04502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grdlist" resultref="/root/temp"/>
  62. <submission id="TRAHA00001"/>
  63. </model>
  64. <script type="javascript">
  65. <![CDATA[
  66. function fInit(){
  67. model.removeNodeset("/root/main/list/grdlist");
  68. var instcd = getUserInfo("dutplceinstcd");
  69. model.setValue("/root/main/condition/instcd",instcd);
  70. var sToday = getCurrentDate().toString();
  71. model.setValue("/root/main/condition/wkdate",sToday);
  72. healGetCodeList( new Array("S600","S600")
  73. , new Array("/root/init/baseinfo/healexamplacelst" ,"/root/init/baseinfo/healexamplacecd") );
  74. model.removenode("/root/init/baseinfo/healexamplacelst/S600[0]");
  75. model.removenode("/root/init/baseinfo/healexamplacecd/S600[0]");
  76. model.refresh();
  77. }
  78. //데이터 처리
  79. function fSave() {
  80. var chgStrDay;
  81. chgStrDay = model.getValue("/root/main/condition/adptstrtdt");
  82. if ( chgStrDay != "" ) {
  83. // 20100726 JHP 전체입력, 개별 입력정보 구문 수정
  84. //var msgR = messageBox("모든 데이타를 적용시작일 기준으로 변경 하시겠습니까? ", "Q000");
  85. var msgR = messageBox("모든 데이타를 적용시작일 기준으로 변경 하시려면 [예], 선택한 의사만 변경하시려면 [아니오]", "Q000");
  86. if (msgR == '6') {
  87. fGrdStatsChg();
  88. // input1.value="";
  89. } else {
  90. //model.alert(" 기존 데이타를 수정하시고자 할 경우 적용시작일의 날짜를 지우고 저장 버튼을 눌러 주세요")
  91. //model.setValue("/root/main/condition/adptstrtdt","")
  92. //model.refresh();
  93. //return;
  94. var vadptDT = model.getValue("/root/main/condition/adptstrtdt")
  95. grd_autjggrid.rowStatus(grd_autjggrid.row) = 1;
  96. grd_autjggrid.valueMatrix(grd_autjggrid.row, grd_autjggrid.colRef("adtstrtdt")) = vadptDT;
  97. }
  98. }else{
  99. // 20100726 JHP 수정인데 판정비율하고 장소가 빈값이면 return 한다.
  100. for(var k = 0; k <= grd_autjggrid.rows; k++){
  101. var rowstat = grd_autjggrid.rowStatus(k);
  102. var chkjudgrate = grd_autjggrid.valueMatrix(k, grd_autjggrid.colRef("judgrate"));
  103. var chkhealexamplacecd = grd_autjggrid.valueMatrix(k, grd_autjggrid.colRef("healexamplacecd"));
  104. if(rowstat == 2){
  105. if(chkjudgrate == "" || chkhealexamplacecd == "" || chkjudgrate == null || chkhealexamplacecd == null){
  106. messageBox("수정내용중 판정비율, 장소 정보가 입력되지 ","E007");
  107. return false;
  108. }
  109. }
  110. }
  111. }
  112. model.setValue("/root/send/grdlist", grd_autjggrid.getUpdateData());
  113. submit("TXAHB04502");
  114. fRetrive();
  115. model.setValue("/root/main/condition/adptstrtdt", "");
  116. model.refresh();
  117. }
  118. function fRetrive() {
  119. model.resetInstanceNode("/root/main/list/grdlist");
  120. model.removeNodeset("/root/main/list/grdlist");
  121. submit("TRAHB04501");
  122. // fGrdSubTotal() ;
  123. }
  124. function fGrdSubTotal() {
  125. grd_autjggrid.subtotal("clear", 0, 0);
  126. grd_autjggrid.subtotalposition="below";
  127. grd_autjggrid.multitotals=true;
  128. grd_autjggrid.subtotal("sum", 0, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계", false);
  129. }
  130. function fGrdStatsChg()
  131. {
  132. var rowCnt;
  133. var vadptDT;
  134. vadptDT = model.getValue("/root/main/condition/adptstrtdt")
  135. rowCnt = grd_autjggrid.Rows;
  136. if (rowCnt < 2) {
  137. model.alert("조회 후 저장 버튼을 선택하여 주세요","알림");
  138. return;
  139. }
  140. for(var i =1; i < rowCnt ; i++)
  141. {
  142. grd_autjggrid.rowStatus(i) = 1;
  143. grd_autjggrid.valueMatrix(i, grd_autjggrid.colRef("adtstrtdt")) = vadptDT;
  144. }
  145. }
  146. function fDispSumAmt()
  147. {
  148. var sumamt = 0;
  149. for(var currow = grd_autjggrid.fixedRows ; currow < grd_autjggrid.rows ; currow++)
  150. {
  151. sumamt = sumamt + Number(grd_autjggrid.valueMatrix(currow , grd_autjggrid.colRef("judgrate")));
  152. }
  153. model.setValue(opt_sumamt.attribute("ref"),sumamt);
  154. model.refresh();
  155. }
  156. function fCheckSaveData()
  157. {
  158. var sumamt = 0;
  159. for(var currow = grd_autjggrid.fixedRows ; currow < grd_autjggrid.rows ; currow++)
  160. {
  161. sumamt = sumamt + Number(grd_autjggrid.valueMatrix(currow , grd_autjggrid.colRef("judgrate")));
  162. }
  163. model.setValue(opt_sumamt.attribute("ref"),sumamt);
  164. //alert(sumamt);
  165. if(sumamt>"100")
  166. {
  167. messageBox("판정비율이 100%를초과합니다 " ,"I007");
  168. return false;
  169. }
  170. if(sumamt<"100")
  171. {
  172. messageBox("판정비율이 100%를미달입니다 " ,"I007");
  173. return false;
  174. }
  175. return true;
  176. }
  177. ]]>
  178. </script>
  179. </xhtml:head>
  180. <xhtml:body pagewidth="800" pageheight="700" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  181. <group id="grp_tle" style="left:0px; top:0px; width:590px; height:13px; ">
  182. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:212px; height:14px; ">[자동판정]의사별 판정 배정기준 관리</caption>
  183. </group>
  184. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:810px; height:677px; ">
  185. <group id="grp_sea" style="left:0px; top:10px; width:800px; height:40px; vertical-align:top; ">
  186. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:800px; height:40px; "/>
  187. <line id="line13" class="line_4" style="x1:710px; y1:5px; x2:710px; y2:32px; "/>
  188. <button id="btn_srch" class="btn1_letter2" style="left:730px; top:10px; width:56px; height:22px; ">
  189. <caption>조회</caption>
  190. <script type="javascript" ev:event="DOMActivate">
  191. <![CDATA[
  192. fRetrive();
  193. // fDispSumAmt();
  194. ]]>
  195. </script>
  196. </button>
  197. <input id="input2" ref="/root/main/condition/wkdate" class="input_s_essential" inputtype="date" style="left:80px; top:10px; width:105px; height:19px; "/>
  198. <caption id="caption3" class="search_name" visibility="visible" style="left:15px; top:10px; width:65px; height:17px; ">일자 :</caption>
  199. </group>
  200. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:800px; y2:75px; ">--화면 import 방법</line>
  201. <datagrid id="grd_autjggrid" nodeset="/root/main/list/grdlist" autoresize="true" caption="구분^기관코드^의사 ID^의사명^판정비율^장소^시작일^종료일^사용^판정^상담^최초등록자^최종수정자^적용시작일" colsep="^" colwidth="50, 50, 70, 99, 60, 100, 90, 88, 37, 37, 37, 70, 70, 50" dataheight="50" explorerbar="move" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" subtotalposition="below" style="left:0px; top:80px; width:800px; height:535px; color:#0000ff; ">
  202. <col ref="iflag" visibility="hidden"/>
  203. <col ref="instcd" visibility="hidden"/>
  204. <col ref="drid"/>
  205. <col ref="drnm"/>
  206. <col ref="judgrate" type="input" mask="###" maxlength="3" style="text-align:right; "/>
  207. <col ref="healexamplacecd" type="combo">
  208. <choices>
  209. <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
  210. <label ref="cdnm"/>
  211. <value ref="cdid"/>
  212. </itemset>
  213. </choices>
  214. </col>
  215. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  216. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  217. <col ref="useyn" style="text-align:center; "/>
  218. <col ref="cnstdryn" style="text-align:center; "/>
  219. <col ref="judgdryn" style="text-align:center; "/>
  220. <col ref="fstrgstrid"/>
  221. <col ref="lastupdtrid"/>
  222. <col ref="adtstrtdt" visibility="hidden"/>
  223. <script type="javascript" ev:event="onrowchanged">
  224. <![CDATA[
  225. // fDispSumAmt();
  226. model.recalculate();
  227. model.refresh();
  228. ]]>
  229. </script>
  230. </datagrid>
  231. <caption id="caption1" class="tit_2" style="left:5px; top:60px; width:212px; height:14px; ">의사별 판정배정기준 내역</caption>
  232. <button id="btn_save" class="btn5_letter2" style="left:714px; top:55px; width:42px; height:19px; ">
  233. <caption>저장</caption>
  234. <script type="javascript" ev:event="DOMActivate">
  235. <![CDATA[
  236. fSave();
  237. ]]>
  238. </script>
  239. </button>
  240. <caption id="caption2" class="search_name" visibility="visible" style="left:497px; top:56px; width:112px; height:17px; ">적용시작일 :</caption>
  241. <input id="input1" ref="/root/main/condition/adptstrtdt" class="input_s_essential" inputtype="date" style="left:602px; top:56px; width:105px; height:19px; "/>
  242. <button id="button1" class="btn2_letter2" style="left:757px; top:55px; width:42px; height:19px; ">
  243. <caption>삭제</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. // 20100726 JHP 삭제 추가, 삭제 누르면 오늘날짜 기준으로 todd정리 함.
  247. deleteSelectedRows(grd_autjggrid, true);
  248. grd_autjggrid.valueMatrix(grd_autjggrid.row, grd_autjggrid.colRef("adtstrtdt")) = getCurrentDate();
  249. model.refresh();
  250. ]]>
  251. </script>
  252. </button>
  253. </group>
  254. </xhtml:body>
  255. </xhtml:html>